# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-daiquiri
pkgver=3.2.1
_commit=a31956ff9909d7e556f209c9ae5c72a7f173e0fd
pkgrel=4
pkgdesc='Library to configure Python logging easily'
arch=('any')
license=('Apache')
url='https://github.com/Mergifyio/daiquiri'
depends=('python-json-logger')
makedepends=('git' 'python-setuptools-scm')
checkdepends=('python-pytest')
source=("git+https://github.com/Mergifyio/daiquiri.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd daiquiri
  python setup.py build
}

check() {
  cd daiquiri
  python -m pytest
}

package() {
  cd daiquiri
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
